<template>
	<div>
		<div>
			<div
				style="background-color: #FFFFFF;display: flex;flex-direction: row;justify-content:space-between;padding-top: 5%; align-items: center;">
				<div style="margin-left: 3%;">
					<div style="display: flex;flex-direction: column;">
						<!-- 左边信息 -->
						<!-- 昵称 -->
						<div style="font-size: 1.25em;font-weight: 900; padding: .3em 0;">
							<open-data type="userNickName" />
						</div>
						<div>
							<!-- 城市 -->
							<div>
								<van-icon name="hotel-o" /><span style="font-size: 12px;margin-left: .5em;">
									<open-data type="userCity" />
								</span>
							</div>
						</div>
						<div>
							<!-- 职位 -->
							<div>
								<van-icon name="send-gift-o" /><span
									style="font-size: 12px;margin-left: .5em;">{{userPsot}}</span>
							</div>
						</div>
					</div>

				</div>

				<div style="margin-right: 5%;">
					<div @click="settings()" class=profile>
						<!-- 用户头像 -->
						<open-data type="userAvatarUrl"></open-data>
					</div>
				</div>
			</div>

			<div style="background-color: #FFFFFF;padding: 4% 0;padding-left: 3%;">
				<span style="font-size: 12px;"><span>签名：</span>{{userSing}}</span>
			</div>


			<div style="display: flex;background-color: #FFFFFF;">
				<div class="userBaseInfo">
					<div style="font-size: 1.3em;">{{collect}}</div>
					<div style="font-size: .8em;">收藏</div>
				</div>
				<div class="userBaseInfo">
					<div style="font-size: 1.3em;">{{comment}}</div>
					<div style="font-size: .8em;">评论</div>
				</div>
				<div class="userBaseInfo">
					<div style="font-size: 1.3em;">{{follow}}</div>
					<div style="font-size: .8em;">关注</div>
				</div>
				<div class="userBaseInfo">
					<div style="font-size: 1.3em;">{{Collection}}</div>
					<div style="font-size: .8em;">粉丝</div>
				</div>
			</div>
		</div>

		<div style="height: 100px;margin-top: .7em;">
			<van-tabs :active="active">
				<van-tab title="动态" name="dyn">动态</van-tab>
				<van-tab title="收藏" name="fl">收藏</van-tab>
				<van-tab title="评论" name="tak">评论</van-tab>
				<van-tab title="关注的主办方" name="sponsor">关注的主办方</van-tab>
			</van-tabs>
		</div>
		
		
		
	</div>
</template>

<script>
	export default {
		data() {
			return {
				active: 'a',
				collect: 0, //收藏
				comment: 0, //评论
				follow: 0, //关注
				Collection: 0, //收藏
				userPsot: '暂无设置',
				userSing: '这个人很懒'
			}
		},
		methods: {
			
			xxxxx() {
				uni.navigateTo({
					url: "/pages/my/userinfo"
				})
			},
			buttonInfo(event) {
				console.log(event)
			}
		}
	}
</script>

<style>
	.profile {
		overflow: hidden;
		display: block;
		width: 75px;
		height: 75px;
		border-radius: 50%;
		border: 2px solid #fff;
		box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
	}

	.userBaseInfo {
		width: 25%;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		padding: .3em 0;
		margin-bottom: .5em;
	}

	.userBaseInfo>div {
		padding: .2em 0;
	}
</style>
